package com.msw.jcwapi.wb.wbrm.service.impl;

import com.msw.jcwapi.wb.wbdz.entity.Wbdz;
import com.msw.jcwapi.wb.wbrm.entity.Wbstruct;
import com.msw.jcwapi.wb.wbrm.mapper.WbstructMapper;
import com.msw.jcwapi.wb.wbrm.service.IWbstructService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2025-04-27
 */
@Service
public class WbstructServiceImpl extends ServiceImpl<WbstructMapper, Wbstruct> implements IWbstructService {

    @Autowired
    private WbstructMapper wbstructMapper;

    //通过pid查询全部
    @Override
    public List<Wbstruct> listByPId(int id) {
        return wbstructMapper.listByPId(id);
    }

    //编辑(通过pid编辑)
    @Override
    public boolean update(Wbstruct wbstruct) {
        return wbstructMapper.Edit(wbstruct);
    }

}
